package net.yxsoft.constant;

/**
 * Created by YXLF on 2016/4/29.
 */
public class ConstantWebContext {

  /**
   * web 路径
   */
  public static final String CXT = "cxt";


  /**
   * 系统后台管理页面
   */
  public static final String ADMIN_MGR_INDEX = "/managerncs";

  /**
   * 用户后台页面
   */
  public static final String CLIENTMGR_INDEX_URL = "/index";

  /**
   * request 请求id
   */
  public static final String REQUEST_ID = "REQUEST_ID";

  /**
   * request cookie
   */
  public static final String COOKIE_MAP = "cookieMap";

  /**
   * request param
   */
  public static final String REQUEST_PARAM_MAP = "paramMap";

  /**
   * 国际化，设置request中的当前语言
   */
  public static final String REQUEST_LOCALE_PRAM = "localePram";

  /**
   * 国际化，设置cookie中当前语言的key
   */
  public static final String COOKIE_LANGUAGE = "language";

  /**
   * 国际化，设置request中的当前语言map
   */
  public static final String REQUEST_MAP = "i18nMap";

  /**
   * 国际化，设置request中的当前语言对应列后缀
   */
  public static final String REQUEST_COLUMN_SUFFIX = "i18nColumnSuffix";

  /**
   * 直接渲染模板的路径
   */
  public static final String TO_URL = "toUrl";

  /**
   * 当前登录用户的id
   */
  public static final String CURR_UID = "tsUserIds";

  /**
   * 当前登录用户
   */
  public static final String CURR_USER = "tsUser";

  /**
   * 验证码key
   */
  public static final String AUTH_CODE = "authCode";

  /**
   * 权限标示验证码
   */
  public static final String AUTH_MARK = "authmark";

  /**
   * 排序方式
   */
  public static final String ORDER_MODE = "orderMode";

  /**
   * 第几页
   */
  public static final String PAGE_INDEX = "pageNumber";

  /**
   * 每页显示几多
   */
  public static final String PAGE_SIZE = "pageSize";

  /**
   * 排序条件
   */
  public static final String ORDER_CONDITION = "orderColunm";

  /**
   * 分页查询条件key前缀
   */
  public static final String QUERY_CONDITION_KEY = "_query";

  /**
   * 表单重复提交验证key
   */
  public static final String FORM_TOKEN = "formToken";

  /**
   * 表单重复提交验证token
   */
  public static final String COOKIE_TOKEN = "token";

  /**
   * 当前范文日志request key
   */
  public static final String LOG_KEY = "reqTsLog";

  /**
   * render耗时计算key
   */
  public static final String RENDER_TIME_KEY = "renderTime";

  public static final String WEB_SERVER_TOMCAT = "tomcat";

  public static final String WEB_SERVER_JETTY = "jetty";

  public static final String LOGIN_TYPE = "loginType";
}
